<?php
 /**
 * Lib
 * Samble Lib index file.
 *
 * @author Lim Afriyadi
 * @version pre-alpha
 * @package Samble
 * @license GNU/GPL.
 */
$dir['Samble']   = _INSTALL_.'lib/';
$dir['AJAX']     = $dir['Samble'].'ajax/';
$dir['CORE']     = $dir['Samble'].'core/';
$dir['DATE']     = $dir['Samble'].'date/';
$dir['MYSQL']    = $dir['Samble'].'db/';
$dir['ERR']      = $dir['Samble'].'err/';
$dir['HTML']     = $dir['Samble'].'html/';
$dir['JS']       = $dir['Samble'].'js/';
$dir['LOG']      = $dir['Samble'].'log/';
$dir['SESSIONS'] = $dir['Samble'].'sessions/';
$dir['XSL']      = $dir['Samble'].'xsl/';
//$dir['XMLRPC'] = $dir['Samble'].'xmlrpc/';

foreach($dir as $directory)
{
    $file = $directory.'index.php';
    if(file_exists($file))
    {
        include_once $file;
    }
}

# Samble initialization process.
Samble::getInstance();
Samble::load(Samble::MYSQL);
Samble::load(Samble::ERR_HANDLER);
Samble::load(Samble::HTML);
Samble::load(Samble::JS);
Samble::load(Samble::Session);
//Samble::load(Samble::SAMBLE_DATE);
//Samble::load(Samble::XSLT);
//Samble::load(Samble::XMLRPC_SERVER);
//Samble::load(Samble::XMLRPC_CLIENT);
?>
